package com.kmt.plaza.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Id;
import java.util.Date;
import java.util.List;
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class ClassifyVO {
    /**
     * 分类id主键
     */
    @Id
    @Column(name = "classify_id")
    private Integer classifyId;

    /**
     * 分类名称
     */
    @Column(name = "classify_name")
    private String classifyName;

    /**
     * 分类层级
     1:一级大分类
     2:二级分类
     3:三级小分类
     */
    @Column(name = "classify_level")
    private Integer classifyLevel;

    /**
     * 父层级id上一级依赖的id，1级分类则为0，二级三级分别依赖上一级
     */
    @Column(name = "parent_id")
    private Integer parentId;

    /**
     * 图标
     */
    @Column(name = "classify_icon")
    private String classifyIcon;

    /**
     * 口号
     */
    @Column(name = "classify_slogan")
    private String classifySlogan;

    /**
     * 分类图
     */
    @Column(name = "classify_pic")
    private String classifyPic;

    /**
     * 背景颜色
     */
    @Column(name = "classify_bg_color")
    private String classifyBgColor;
    /**
     *实现首页的类别显示
     */
    @Column(name = "classify")
    private List<ClassifyVO> classify;
    /**
     * 实现首页分类商品推存
     */
    private List<ProductVO> products;
}
